<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="bean.Company" %>
<%@ page import="dao.CompanyDao" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <%      String company_id=request.getParameter("company_id");
            CompanyDao cdao=new CompanyDao();
            List<Company> list=cdao.findById(company_id);
            String companyName=list.get(0).getCompanyName();
           %>
        <title>添加排放口</title>
    
	     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		 <link href="<%=request.getContextPath() %>/css/SonPage.css" rel="stylesheet" type="text/css">
         <link href="<%=request.getContextPath() %>/css/Element.css" rel="stylesheet" type="text/css">
         <link href="<%=request.getContextPath() %>/css/easyui.css" rel="stylesheet" type="text/css">
         <link href="<%=request.getContextPath() %>/css/icon.css" rel="stylesheet" type="text/css">
         <script src="<%=request.getContextPath() %>/js/Mtopt_1.1.js" type="text/javascript"></script>
         <script src="<%=request.getContextPath() %>/js/SonPage.js" type="text/javascript"></script>
         <script src="<%=request.getContextPath() %>/js/jquery-1.8.3.js" type="text/javascript"></script>
         <script src="<%=request.getContextPath() %>/js/jquery.easyui.min.js" type="text/javascript"></script>
         <script src="<%=request.getContextPath() %>/js/easyui-lang-zh_CN.js" type="text/javascript"></script>

  </head>
  
  <body>

		<div class="DivShowData panel-noscroll">
        <div class="panel datagrid" style="width: 1180px;">
        	<div class="panel-header" style="width: 1168px;">
        		<div class="panel-title">排放口基本信息</div>
        		<div class="panel-tool"></div>
        	</div>
        </div>
        </div>
        	<div class="datagrid-wrap panel-body" title="" style="width: 1178px; height: 571px;">
        		<div class="datagrid-toolbar"></div>
        		<div class="datagrid-view" style="width: 1178px; height: 542px;">
        			<style type="text/css">
						div.datagrid-cell-c1-PolluteSourceNo {width:undefinedpx;}
						div.datagrid-cell-c1-PolluteSourceName {width:92px;}
						div.datagrid-cell-c1-GroupName {width:72px;}
						div.datagrid-cell-c1-TypeName {width:32px;}
						div.datagrid-cell-c1-IndustryName {width:92px;}
						div.datagrid-cell-c1-OperateScaleName {width:52px;}
						div.datagrid-cell-c1-AttentionName {width:32px;}
						div.datagrid-cell-c1-TakeoverName {width:32px;}
						div.datagrid-cell-c1-PleaceName {width:52px;}
						div.datagrid-cell-c1-9 {width:12px;}
					</style>
<div class="datagrid-view2" style="width: 1178px;">
		<div class="datagrid-header" style="width: 1178px;">
			<div class="datagrid-header-inner" style="display: block;">
			      <form action="<%=request.getContextPath()%>/addVentServlet" method="post">
				<table class="datagrid-htable"border="0" cellspacing="0" cellpadding="0" style="height: 50px;">
					<tbody>
					<tr>
					   <td><input type="hidden" value="<%=company_id%>" id="id" name="id"></td>
					</tr>
					<tr>
					    <td>企业名称：</td>
						<td><input type="text" value="<%=companyName %>" id="companyName" name="companyName"></td>
					</tr>
					<tr>
					    <td>排放口1：</td>
					    <td><input type="text" value="" id="ventName1" name="ventName1"></td>
					</tr>
					<tr>
					    <td>排放口2：</td>
					    <td><input type="text" value="" id="ventName2" name="ventName2"></td>
					</tr>
					<tr>
					    <td>排放口3：</td>
					    <td><input type="text" value="" id="ventName3" name="ventName3"></td>
					</tr>
					<tr>
						<td><input type="submit" name="yes" value="添加" style="width: 100px;"></td>
					    <td><input type="button" name="cancel" value="取消" style="width: 100px;" onclick="window.location.href='<%=request.getContextPath()%>/vent/editvent.jsp?company_id=<%=company_id%>'"></td>
					</tr>
					</tbody>
				</table>
				</form>
				</div>
			</div>
		</div>
	</body>
</html>
